﻿using MyECommerceProject.Models;

namespace MyECommerceProject.Interfaces
{
    public interface IInventoryRepository
    {
        Task<IEnumerable<Inventory>> GetInventoriesAsync();
        Task<Inventory> GetInventoryByIdAsync(int productId);//通过商品ID获取库存信息
        Task AddInventoryAsync(Inventory inventory);
        Task UpdateInventoryAsync(Inventory inventory);
        Task DeleteInventoryAsync(int inventoryId);

        Task AddInventoryRecordAsync(Inventory inventory);
        Task<IEnumerable<Inventory>> GetInventoryRecordsAsync(int productId, DateOnly startDate, DateOnly endDate);
    }
}
